<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>图片懒加载</title>
  <style>
			.fill {
				height: 1500px;
				border: 1px solid #ccc;
			}
		</style>
</head>
<body>
  <div class="fill">
      <img src="img/1.jpeg" alt="图片加载失败!" data-src="img/2.jpeg">
      <button id="btn">按钮</button>
  </div>
  <img src="img/1.jpeg" alt="图片加载失败!" data-src="img/3.jpeg">
  <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
  <script src="./js/lazy-load.js"></script>
  <script>
    LazyLoad.init()
    /* btn.onclick = function(){
      // console.log(222)
      LazyLoad.off()
    } */
  </script>
</body>
</html>